from prometheus_api_client import PrometheusConnect prom = PrometheusConnect(url ="<prometheus-host>", disable_ssl=True) # Get the list of all the metrics that the Prometheus host scrapes prom.all_metrics()